package com.sxbbc.common.core.mapper.jz;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sxbbc.common.core.entity.jz.ChickenBonus;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sxbbc.common.core.utils.BasePage;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 鸡舍分红表 Mapper 接口
 * </p>
 *
 * @author
 * @since 2020-04-23
 */
public interface ChickenBonusMapper extends BaseMapper<ChickenBonus> {

    /**
     * 查询今日可分红的记录
     *
     * @return
     */
    List<ChickenBonus> selectChickenBonusByToday();

    ChickenBonus countChickenBonusList(@Param("orderCode") String orderCode);

    IPage<ChickenBonus> querychickenBonusList(BasePage<ChickenBonus> page, @Param("param") ChickenBonus chickenBonus);

    BigDecimal queryTotalFundByDate(@Param("startTime")String startTime, @Param("endTime") String endTime);
}
